// 教学任务和教材信息核对
<template>
  <div class="assessment-container">
    <div class="search-container">
      <div class="search-container-left">
        <div class="search-container-item">
          <span>学期：</span>
          <el-select v-model="xq" style="width: 85px" size="mini" placeholder="请选择">
            <el-option v-for="item in xqList" :key="item.value" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </div>
         <div class="search-container-item">
          <span>培养层次：</span>
          <el-select v-model="pycc" style="width: 85px" size="mini" placeholder="请选择">
            <el-option v-for="item in pyccList" :key="item.value" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </div>
        <div class="search-container-item">
          <span>级次：</span>
          <el-select v-model="jc" style="width: 85px" size="mini" placeholder="请选择">
            <el-option v-for="item in jcList" :key="item.value" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </div>
        <div class="search-container-item">
          <span>课程负责单位：</span>
          <el-select v-model="kcfzdw" style="width: 85px" size="mini" placeholder="请选择">
            <el-option v-for="item in kcfzdwList" :key="item.value" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </div>
        <div class="search-container-item">
          <span>课程名称：</span>
          <el-input style="width: 120px" size="mini" placeholder="请输入内容" v-model="kcmc"></el-input>
        </div>
        <div class="search-container-item">
          <span>状态：</span>
          <el-select v-model="zt" style="width: 85px" size="mini" placeholder="请选择">
            <el-option v-for="item in ztList" :key="item.value" :label="item.label" :value="item.value"></el-option>
          </el-select>
        </div>
        <div class="search-button">
          <img src="../../../../../assets/assessment/icon-search.png" alt="" />
          <span>查询</span>
        </div>
      </div>
      <div class="search-container-right">
        <button-item :link="''" :name="'导出教材信息'" :icon="'el-icon-upload2'" :buttonColor="'yellow'"></button-item>
        <button-item :link="''" :name="'审核通过'" :icon="'el-icon-circle-check'" :buttonColor="'blue'"></button-item>
        <button-item :link="''" :name="'打回'" :icon="'el-icon-delete'" :buttonColor="'red'" @click="taskBack"></button-item>   
      </div>
    </div>
    <div class="plan-entry-table-container">
      <el-table
        :data="tableData"
        border
        style="width: 100%"
        class="table-data"
        row-class-name="row-class"
        cell-class-name="cell-class"
        header-row-class-name="header-row-class"
        header-cell-class-name="header-cell-class"
      >
        <el-table-column width="100" align="center" type="selection"> </el-table-column>
        <el-table-column prop="x" label="系"  align="center"></el-table-column>
        <el-table-column prop="jys" label="教研室"  align="center"></el-table-column>
        <el-table-column prop="kcbh" label="课程编号"  align="center"></el-table-column>
        <el-table-column prop="kcmc" label="课程名称"  align="center"></el-table-column>
        <el-table-column prop="zxs" label="总学时"  align="center"></el-table-column>
        <el-table-column prop="jxbxx" label="教学班信息" width="300" align="center">
            <template slot-scope="{row,$index}">
                <a style="text-decoration: underline">{{row.jxbxx}}</a>
            </template>
        </el-table-column>
        <el-table-column prop="jc" label="教材"  align="center">
            <template slot-scope="{row,$index}" width="100">
                <span v-if="row.zt === '已审核'">{{row.jc}}<img src="../../../../../assets/assessment/icon-plan-record-detail.png" width="20" height="20"></span>
                <span v-if="row.zt === '待审核'"><button-item :link="''" :name="'添加'" :icon="'el-icon-circle-plus-outline'" :buttonColor="'orange'"></button-item></span>
            </template>
        </el-table-column>
        <el-table-column prop="zt" label="状态"  align="center"></el-table-column>
        <el-table-column prop="bz" label="备注"  align="center">
            <template>
                <img src="../../../../../assets/assessment/icon-plan-record-detail.png" width="20" height="20">
            </template>
        </el-table-column>
        <el-table-column prop="zhxg" label="最后修改" width="300" align="center"></el-table-column>
      </el-table>
    </div>
    <div class="bottom-block">
      <div class="export-button">
        <img src="../../../../../assets/assessment/icon-export.png" alt="" />
        <span>导出Excel</span>
      </div>
      <div class="text"></div>
    </div>
    <!-- <div>
      <el-row>   
            <el-col :span="4" offset="12"><el-button type="warning" plain @click="importBtn">发 布</el-button></el-col>
      </el-row>
    </div> -->
    <el-dialog title="教学任务打回原因" :visible.sync="taskBackDialog" width="600px">
      <el-row>
          <el-col :span="4" :offset="2"><div style="color: #004ca7;font-size: 16px;font-weight: bold;">打回原因：</div></el-col>
          <el-col :span="16"><el-input type="textarea" rows="5"></el-input></el-col>
      </el-row>
      <span slot="footer" class="dialog-footer">
        <el-button type="warning" plain style="margin-right: 50px" @click="tipConfirm">确 定</el-button>
        <el-button type="danger" plain @click="taskBackDialog = false">取 消</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import ButtonItem from '@/components/ButtonItem.vue';
export default {
  components: { ButtonItem },
  data() {
    return {
      taskBackDialog: false,
      xq: "2020春",
      xqList: [
        {
          value: "2020春",
          label: "2020春",
        },
        {
          value: "2020夏",
          label: "2020夏",
        },
      ],
      jc: "2020级",
      jcList: [
        {
          value: "2020级",
          label: "2020级",
        },
        {
          value: "2021级",
          label: "2021级",
        },
      ],
      zt: "",
      ztList: [

      ],
      kcfzdw: "",
      kcfzdwList: [

      ],
      kcmc:"",
      pycc: "大专",
      pyccList: [
        {
          value: "大专",
          label: "大专",
        },
        {
          value: "本科",
          label: "本科",
        },
      ],
      research: "教研室一",
      researchList: [
        {
          value: "教研室一",
          label: "教研室一",
        },
        {
          value: "教研室二",
          label: "教研室二",
        },
      ],
      tableData: [
        {
          x: "基础教学系",
          jys: "政治教研室",
          kcbh: "123456",
          kcmc: "体育课（一）",
          zxs: "20",
          jxbxx: "2021（博硕课）",
          wapzybc: "李教员",
          jc: "英语（25）",
          zt: "已审核",
          bz: "李教员",
          zhxg: "李四 2020.02.03"
        },
        {
          x: "基础教学系",
          jys: "政治教研室",
          kcbh: "123456",
          kcmc: "体育课（一）",
          zxs: "20",
          jxbxx: "2021（博硕课）",
          wapzybc: "李教员",
          jc: "英语（25）",
          zt: "待审核",
          bz: "李教员",
          zhxg: "李四 2020.02.03"
        },
      ],
    };
  },
  methods: {
    taskBack(){
      this.taskBackDialog = true
    },
    editBtn(){
      this.$router.push("/admin/teachingTaskManage/profCourse")
    },
    planImport(){
      this.$router.push("/admin/teachingTaskManage/planImport")
    },
    tipConfirm(){
    },
    syncShow(){
      this.syncShowTip = true
    },
    addHours() {
      this.$router.push("/teacher/workload/ClassTimeQuery");
    },
  },
};
</script>
<style lang="less" scoped>
.plan-entry-table-container {
  margin-top: 30px;
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }
  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 82px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }
  .el-table th.el-table__cell > .cell {
    padding: 0;
  }
  .el-table .cell,
  .el-table--border .el-table__cell:first-child .cell {
    padding: 0;
  }
  .el-table__body td .cell {
    padding: 0;
  }

  .add-button {
    margin: 0 auto;
    cursor: pointer;
    background: #fff6ef;
    border: 1px solid #f3b815;
    width: 65px;
    height: 28px;
    line-height: 28px;
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    > span {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
    > img {
      width: 13px;
      height: 13px;
      margin-right: 8px;
    }
  }
  .pass-text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #51aef6;
  }
  .wait-text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #ff3819;
  }
  .watch-button {
    width: 76px;
    height: 36px;
    background: #fef1e8;
    border: 1px solid #f86900;
    border-radius: 6px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #f86900;
    line-height: 16px;
    margin: 2px auto;
  }
}
</style>

<style lang="less" scoped>
.assessment-container {
  width: 1803px;
  margin: 0 auto;
  .search-container {
    margin-top: 27px;
    padding-left: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    .search-container-left,
    .search-container-right {
      margin-top: 0px;
      display: flex;
      flex-direction: row;
    }
    .search-container-item {
      color: #004ca7;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      margin-right: 30px;
      > span {
        margin-right: 6px;
      }
    }
    .search-button {
      width: 77px;
      height: 28px;
      line-height: 28px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      > span {
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #51aef6;
      }
      > img {
        width: 20px;
        height: 20px;
        margin-right: 4px;
      }
    }
  }
  .bottom-block-export {
    right: 0;
    width: 127px;
    height: 27px;
    line-height: 34px;
    background: #fff6ef;
    border: 1px solid #f3b815;
    opacity: 1;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    > span {
      font-size: 16px;
      font-family: Source Han Sans CN;
      font-weight: 500;
      color: #f3b815;
    }
    > img {
      width: 16px;
      height: 16px;
      margin-right: 9px;
    }
  }
  .class-tip {
  color: #004ca7;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 40px;
}
  .plan-entry-table-container {
    margin-top: 30px;
    .table-data {
      width: 100%;
      border: 0.8px solid #004ca7;
      border-radius: 9px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #004ca7;
    }
  }
}
</style>